package code02_运算符;

public class Test05_条件运算符 {
	public static void main(String[] args) {
		int a = 4, b = 12;

		System.out.println(a * 2 > b ? "yes" : "no");

		int c = a > b ? a * a : b * b;
		System.out.println(c);
		
		
		int x = 5;
		int y = 1;
		
		System.out.println(x * y++);
		System.out.println(x * y++);
		System.out.println(x * y++);
		System.out.println(x * y++);
		System.out.println(x * y++);
		System.out.println(x * y++);
		System.out.println(x * y++);
		System.out.println(x * y++);
	}
}
